#ifndef __TRAPGENERATOR_H__
#define __TRAPGENERATOR_H__

#include <signal.h>
#include <ucontext.h>

#include "util/Pool.h"

class TrapGenerator
{
 public:
    int signum;
    siginfo_t info;
    ucontext_t context;

    // overloaded to force use of CALLOC/FREE
    NEW_DELETE_OPERATORS_H(TrapGenerator,NoSuper);
    TrapGenerator();
    ~TrapGenerator();
    void generateTrap();
};
#endif // __TRAPGENERATOR_H__
